package com.leapp.sk.util.im

import cc.vv.lkimcomponent.view.emoji.EmojiRes
import com.leapp.sk.R
import com.leapp.sk.bean.EmojiconEntity

/**
 * 表情数据
 * @author  chaohaipeng  on 2018/7/13.
 */
class EaseDefaultEmojiconDatas {
    companion object {

        val emojis =  EmojiRes.emojides

        val icons = EmojiRes.emojires

        private fun createData(): List<EmojiconEntity> {
            EmojiconUtils.clearnMapPattern()
            val datas = mutableListOf<EmojiconEntity>()
            if (icons !=null){
                for (i in icons.indices) {
                    datas.add(EmojiconEntity(icons[i], emojis[i], EmojiconEntity.Type.NORMAL))
                    EmojiconUtils.addPattern(emojis[i], icons[i])
                }
            }
            return datas
        }

         var DATA= listOf<EmojiconEntity>()
        fun getData(): List<EmojiconEntity>{
            DATA = createData()


            return DATA
        }
    }
}